<template>
    <div>
        <a-card>
            <div slot="cover">
                <hw-table :HwDataSource="AllHwInfo"></hw-table>
            </div>
        </a-card>
    </div>
</template>

<script>
    import HwTable from "@/views/my/components/HwTable";
    import {getAction} from '@/api/manage'

    import ARow from "ant-design-vue/es/grid/Row";
    import ACol from "ant-design-vue/es/grid/Col";

    export default {
        name: 'HwManage',
        components: {ACol, ARow, HwTable},
        mixins: [],
        data() {
            return {
                url: {
                    getAllHwInfo: "/my/hwInfo/getAllHwInfo"
                },
                AllHwInfo: "",
            }
        },
        created() {
            this.loadData()
        },
        methods: {
            loadData() {
                getAction(this.url.getAllHwInfo).then((res) => {
                    if (res.success) {
                        console.log('AllHwInfo', res.result);
                        this.AllHwInfo = res.result;
                        for (var i = 0; i < this.AllHwInfo.length; i++) {
                            this.AllHwInfo[i].key = i + 1;
                        }
                    }
                })
            }
        }
    }
</script>

<style scoped>

</style>